laravel artisan progress bar

63

laravel artisan progress bar -

public function handle()
{
    $this->output->progressStart(10);

    for ($i = 0; $i < 10; $i++) {
        sleep(1);

        $this->output->progressAdvance();
    }

    $this->output->progressFinish();
}

Comments

Submit
0 Comments